package com.zy.gpdemo.domain;

public class Status {
    // 打印机状态 n=1
    private boolean closeCashBox;    // 钱箱状态 (1,4 关闭)
    private boolean offLine=true; // 在线状态 (1,8 脱机)
    // 脱机状态 n=2
    private boolean cover;  // 上盖状态 (2,4 开)
    private boolean feed;   // 走纸键状态 (2,8 按下)
    private boolean paper;  // 纸张   (2,32 缺纸)
    private boolean error;  // 出错   (2,64 有错误情况)
    // 错误状态 n=3
    private boolean cutter; // 切刀状态 (3,8 错误)
    private boolean UnRecoverError; // 不可恢复错误   (3,32 是)
    private boolean recoverError; // 不可恢复错误   (3,32 是)
    private boolean temperatureAndVoltage;  // 打印头温度和电压 (3,64 超出范围)
    // 纸张状态 n=4
    private boolean paperWillDo;    // 纸将尽 (4,12)
    private boolean paperDo;    // 纸尽 (4,96)

    public boolean isCloseCashBox() {
        return closeCashBox;
    }

    public void setCloseCashBox(boolean cashBox) {
        this.closeCashBox = cashBox;
    }

    public boolean isOffLine() {
        return offLine;
    }

    public boolean isRecoverError() {
        return recoverError;
    }

    public void setRecoverError(boolean recoverError) {
        this.recoverError = recoverError;
    }

    public void setOffLine(boolean onLine) {
        this.offLine = onLine;
    }

    public boolean isCover() {
        return cover;
    }

    public void setCover(boolean cover) {
        this.cover = cover;
    }

    public boolean isFeed() {
        return feed;
    }

    public void setFeed(boolean feed) {
        this.feed = feed;
    }

    public boolean isPaper() {
        return paper;
    }

    public void setPaper(boolean paper) {
        this.paper = paper;
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public boolean isCutter() {
        return cutter;
    }

    public void setCutter(boolean cutter) {
        this.cutter = cutter;
    }

    public boolean isUnRecoverError() {
        return UnRecoverError;
    }

    public void setUnRecoverError(boolean unRecoverError) {
        UnRecoverError = unRecoverError;
    }

    public boolean isTemperatureAndVoltage() {
        return temperatureAndVoltage;
    }

    public void setTemperatureAndVoltage(boolean temperatureAndVoltage) {
        this.temperatureAndVoltage = temperatureAndVoltage;
    }

    public boolean isPaperWillDo() {
        return paperWillDo;
    }

    public void setPaperWillDo(boolean paperWillDo) {
        this.paperWillDo = paperWillDo;
    }

    public boolean isPaperDo() {
        return paperDo;
    }

    public void setPaperDo(boolean paperDo) {
        this.paperDo = paperDo;
    }

    @Override
    public String toString() {
        return "{" +
                "closeCashBox=" + closeCashBox +
                ", offLine=" + offLine +
                ", cover=" + cover +
                ", feed=" + feed +
                ", paper=" + paper +
                ", error=" + error +
                ", cutter=" + cutter +
                ", UnRecoverError=" + UnRecoverError +
                ", temperatureAndVoltage=" + temperatureAndVoltage +
                ", paperWillDo=" + paperWillDo +
                ", paperDo=" + paperDo +
                '}';
    }
    
}
